package com.hutao.manage.query;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.hutao.manage.util.StringUtil;

public class MedVisitUrgeQuery extends PageQuery {

	private String name;
	
	private String idCard;
	
	private Integer visitNumber;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date outHospitalStartDate;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date outHospitalEndDate;
	
	private String mrId;
	
	private Integer outHospitalOfficeId;
	
	private String byUrgeUserPhone;
	
	private Integer urgeStatus;
	
	public String getName() {
		
		return StringUtil.meaningStr(name);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdCard() {
		return StringUtil.meaningStr(idCard);
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public Date getOutHospitalStartDate() {
		return outHospitalStartDate;
	}

	public void setOutHospitalStartDate(Date outHospitalStartDate) {
		this.outHospitalStartDate = outHospitalStartDate;
	}

	public Date getOutHospitalEndDate() {
		return outHospitalEndDate;
	}

	public void setOutHospitalEndDate(Date outHospitalEndDate) {
		this.outHospitalEndDate = outHospitalEndDate;
	}

	
	
	public String getMrId() {
		return StringUtil.meaningStr(mrId);
	}

	public void setMrId(String mrId) {
		this.mrId = mrId;
	}

	public Integer getOutHospitalOfficeId() {
		return outHospitalOfficeId;
	}

	public void setOutHospitalOfficeId(Integer outHospitalOfficeId) {
		this.outHospitalOfficeId = outHospitalOfficeId;
	}
	
	public Integer getUrgeStatus() {
		return urgeStatus;
	}

	public void setUrgeStatus(Integer urgeStatus) {
		this.urgeStatus = urgeStatus;
	}

	
	
	
	public String getByUrgeUserPhone() {
		return byUrgeUserPhone;
	}

	public void setByUrgeUserPhone(String byUrgeUserPhone) {
		this.byUrgeUserPhone = byUrgeUserPhone;
	}
	
	
	

	public Integer getVisitNumber() {
		return visitNumber;
	}

	public void setVisitNumber(Integer visitNumber) {
		this.visitNumber = visitNumber;
	}

	public Boolean IsPropertyEmpty(){
		if(this.getName() == null && this.getIdCard() == null
				&& this.getOutHospitalStartDate() == null && this.getOutHospitalEndDate() == null
				&& this.getMrId() == null && this.getOutHospitalOfficeId() == null
				&& this.getUrgeStatus() == null && this.getByUrgeUserPhone() == null){
			return true;
		}
		return false;
	}
}
